const Sequelize = require("sequelize");
const sequelize = require("../dbConn.js");

const { STRING, INTEGER, DATE, BIGINT } = Sequelize;

class List extends Sequelize.Model{}

List.init({
    id: {
        type: INTEGER,
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        unique: true
    },
    order_no: STRING,
    time: DATE,
    address: STRING,
    phone: BIGINT,
    name: STRING,
    status: INTEGER
},{
    sequelize,
    modelName: "List"
});

module.exports = {
    List
};
